<?php
class Action extends Template {
	public function index() {
		$oCategory = Base::loadClass ( 'Category', 'model' );
		$aData = $oCategory->getItem ( 1 );
		if (! in_array ( $_GET ['type'], array ('small', 'preview', 'list' ) )) {
			$_GET ['type'] = 'small';
		}
		parent::assign ( 'type', $_GET ['type'] );
		parent::assign ( 'list', $aData );
		parent::output ( 'index.html' );
	}
}
?>